package ln.javatest.day07.demo13;
//发红包案例
public class User {
    //发红包和收红包的公共特性，父类
    private String name; //姓名
    private int money; //余额，当前用户拥有的钱数
    //显示一下当前用户有多少钱
    public void show(){
        System.out.println("我叫" + name + "，余额还剩：" + money);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }

    public User(String name, int money) {
        this.name = name;
        this.money = money;
    }

    public User() {
    }
}
